#     assert r.json()['msg'] == login_data['expect']['msg']
#     assert r.json()['status'] == login_data['expect']['status']
#     assert r.json()['code'] == login_data['expect']['code']
# Assert.check_equal(r.json(),login_data['expect'],"msg,status,code")
import pytest_check as c


def check_equal(real, expect, keystr):
    keys = keystr.split(",")
    for key in keys:
        try:
            r = str(expect[key])
            e = str(real[key])
            c.equal(r, e)
        except Exception as e:
            print(f"校验{key}失败，实际结果为：{r},预期结果{e}，异常{e}")

if __name__ == '__main__':
    pass
